import request from '../utils/request'

// 购物车列表数据
export const getCartList = () => request({
    url: '/cart/list'
})

// 添加到购物车
export const addShop = (name, pic, num, info, price) => request({
    url: '/cart/add',
    data: {
        name, pic, num, info, price
    }
})

// 删除购物车
export const removeCart = (id) => request({
    url: '/cart/delete',
    data: {
        id
    }
})